home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 308 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.5 KB

  1. Path: cs.mu.OZ.AU!bounce-back
  2. From: rich@kastle.com (Richard Krehbiel)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Are all Windows programs ill-formed?
  5. Date: 07 Feb 96 03:18:11 GMT
  6. Organization: Kastle Development Associates
  7. Approved: fjh@cs.mu.oz.au
  8. Message-ID: <1996Feb6.152240.14257@friend.kastle.com>
  9. References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de> <4evp66$a58@mulga.cs.mu.OZ.AU>
  10. Reply-To: rich@kastle.com
  11. NNTP-Posting-Host: munta.cs.mu.oz.au
  12. X-Original-Date: Tue, 6 Feb 1996 15:21:52 GMT
  13. X-Newsreader: Forte Free Agent 1.0.82
  14. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  15.     iQBFAgUBMRgabOEDnX0m9pzZAQFWuQF/VPLo/clOMVeo0/VWVLHBz8LPbCtkeKz+
  16.     kZW7rQJ4MSbz2cG7DE8cH/z88UFIB+Xu
  17.     =cRfy
  18. Originator: fjh@munta.cs.mu.OZ.AU
  19.  
  20. fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote:
  21.  
  22. >I did not claim that any or all Windows compilers were not conforming.
  23. >I simply pointed out what they were required to do in order to conform.
  24.  
  25. >I did say that
  26.  
  27. >| I think the problem is due to Microsoft overlooking the C and C++
  28. >| standards, not vice versa.
  29.  
  30. >but the problem I was referring to was not that Microsoft's compilers
  31. >don't conform to the standard (most likely they do) but rather that
  32. >Microsoft encourages people to write non-portable, non-standard-conforming
  33. >code which is then subject to the usual problems of vendor lock-in.
  34.  
  35. YES, YES, YES.  This is IT.
  36.  
  37. *IF* Microsoft decides that it's profitable, they may in the future
  38. allow a standard-conforming C++ program to be compiled and executed.
  39. My guess is that they won't bother.  It'll be easy enough to feign
  40. "true compatability" while taking as much liberty as GNU does,
  41. blithely compiling and executing programs that the standard says
  42. should fail with diagnostics.
  43.  
  44. I know full well that my Windows programs follow Microsoft's
  45. standards, and not anyone elses; Microsoft C, not ANSI or ISO; ODBC,
  46. not SQL-92 nor SAG CLI, etc.
  47.  
  48. My only hope of "portability" is on a smaller component level.  I can
  49. write fully ANSI-compliant functions and objects, but once compiled
  50. and linked into a Windows program the whole becomes Microsoft-defined.
  51.  
  52. For what it's worth, I think the answer to the subject line is "yes".
  53. All Windows programs are ill-formed according to the C++ standard.
  54.  
  55. --
  56. Richard Krehbiel, Kastle Systems, Arlington VA USA
  57. rich@kastle.com (work) or richk@mnsinc.com (personal)
  58. ---
  59. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  60.   Contact address: std-c++-request@ncar.ucar.edu.  Moderation policy:
  61.   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  62.